import sys
if __name__ == '__main__':
 if len(sys.argv) == 2:
  print sys.argv[1][::-1]